package com.qf.cloud2202.microd;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

@SpringBootApplication
@EnableHystrix  // 开启Hystrix功能：降级、熔断和隔离（限流）
@EnableHystrixDashboard
@ServletComponentScan("com.qf.cloud2202.microd.servlet")
public class MicrodApp {
    public static void main(String[] args) {
        SpringApplication.run(MicrodApp.class);
    }
}
